<?php
    //--- Giu gia tri cua form
    $full_name = array(
                        "name"  => "full_name",
                        "id"    => "full_name",
                        "size"  => "30",
                        "value" => $info["full_name"]
                    );
    $username = array(
                        'name'        => 'username',
                        'id'          => 'fname',
                        'size'        => '30',
                        'value'       => $info["username"],
                    );

    $password = array(
                        'name'        => 'password',
                        'id'          => 'lname',
                        'size'        => '30',
                        'value'       => $info["password"],
                    );

    $repassword = array(
                        'name'        => 'repassword',
                        'id'          => 'lname',
                        'size'        => '30',
                        'value'       => $info["password"],
                    );
    $address = array(
                        'name'        => 'address',
                        'id'          => 'address',
                        'size'        => '30',
                        'value'       => $info["address"],
                    );
    $phone = array(
                        'name'        => 'phone',
                        'id'          => 'phone',
                        'size'        => '30',
        'value'       => $info["phone"],
                    );
    $email = array(
                        'name'        => 'email',
                        'id'          => 'email',
                        'size'        => '30',
                        'value'       => $info["email"],
                    );
        $submit = array(
                        'name'        => 'ok',
                        'value'          => 'UPDATE',
                    );
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="<?php echo base_url('public_source/css_source/register.css')?>" rel="stylesheet" type="text/css">
    </head>
    <body>
        <div ID="box_entry" style="float: left; background-color: white; margin-left: 315px">
            <div id="Detail_Register">
                <div class="error">
                    <?php
                        echo validation_errors('<li>','</li>');
                        if(isset($error) && $error!="" && !empty($error))
                            echo $error;
                    ?>
                </div>
                <form action="" method="post" enctype="multipart-formdata">
                    <table cellspacing="15px">
                        <tr>
                            <td>Tên tài khoản</td>
                            <td><strong><?php echo  $info["username"] ?></strong></td>
                        </tr>
                        <tr>
                            <td>Địa chỉ Email</td>
                            <td><strong><?php echo  $info["email"] ?></strong></td>
                        </tr>
                        <tr>
                            <td>Tên và tên</td>
                            <td><?php echo form_input($full_name);?></td>
                        </tr>
                        <tr>
                            <td>Điện thoại</td>
                            <td><?php echo form_input($phone);?></td>
                        </tr>
                        <tr>
                            <td>Địa chỉ nhà</td>
                            <td><textarea name="address" style="height: 70px; width: 250px"><?php echo $info["address"] ?></textarea></td>
                        </tr>
                        <tr>
                            <td>Giới tính</td>
                            <td>Male<input type="radio" value="1" name="gender" <?php if($info['gender']==1) echo "checked";?>> | Female<input value="2" type="radio" name="gender" <?php if($info['gender']==2) echo "checked";?>></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><?php echo form_submit($submit)?></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
    </body>
</html>